package com.itheima;

import java.util.Scanner;
/*
作业3:
*借助Scanner获取控制台输入的两个任意数字，然后使用
> 大于
>= 大于或等于
< 小于
<= 小于或等于
== 是否相等
!= 是否不等

判断两个值之间的关系
* */
public class count {
    public static void main(String[] args) {
        System.out.println("第一个整数");
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        System.out.println("第二个整数");
        int num2 = sc.nextInt();
        boolean result1 = num1 > num2;
        boolean result2 = num1 >= num2;
        boolean result3 = num1 < num2;
        boolean result4 = num1 <= num2;
        boolean result5 = num1 == num2;
        boolean result6 = num1 != num2;
        System.out.println("比较:"+ num1+">"+num2 +":" +result1);
        System.out.println("比较:"+ num1+">="+num2 +":" + result2);
        System.out.println("比较:"+ num1+"<"+num2 + ":" +result3);
        System.out.println("比较:"+ num1+"<="+num2 + ":" +result4);
        System.out.println("比较:"+ num1+"=="+num2 + ":" +result5);
        System.out.println("比较:"+ num1+"!="+num2 + ":" +result6);
    }
}
